package com.miyuan.wm.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.miyuan.wm.pojo.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName RoleMapper
 * @Description 角色信息表数据库操作
 */
@Mapper
public interface RoleMapper extends BaseMapper<RoleEntity> {

    /**
     * @Description 根据用户Id集合批量查询角色列表
     * @param:
     * @return:
     */
    List<RoleEntity> listRolesByUserIds(@Param(value = "userIds") List<Integer> userIds);
}
